/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun.dubboserverprovider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.sun.dubboserverprovider.dao.UserMapper;
import com.sun.model.UserInfo;
import com.sun.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Service(version = "2.0.0")
@Component
public class UserServiceImpl2 implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<UserInfo> selectAllUser() {
        System.out.println("UserService...版本2.0。0");
        return userMapper.selectAllUser();
    }

    @Override
    public int insertUserInfo(UserInfo userInfo) {
        return userMapper.insertUserInfo(userInfo);
    }
}
